|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectandroid.os.AsyncTask<Void,Void,List<Response>>
com.facebook.RequestAsyncTask
public class RequestAsyncTask
Defines an AsyncTask suitable for executing a Request in the background. May be subclassed by applications having unique threading model needs.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class android.os.AsyncTask |
|---|
AsyncTask.Status |
| Field Summary |
|---|
| Fields inherited from class android.os.AsyncTask |
|---|
SERIAL_EXECUTOR, THREAD_POOL_EXECUTOR |
| Constructor Summary | |
|---|---|
RequestAsyncTask(Collection<Request> requests)
Constructor. |
|
RequestAsyncTask(HttpURLConnection connection,
Collection<Request> requests)
Constructor that allows specification of an HTTP connection to use for executing the requests. |
|
RequestAsyncTask(HttpURLConnection connection,
Request... requests)
Constructor that allows specification of an HTTP connection to use for executing the requests. |
|
RequestAsyncTask(HttpURLConnection connection,
RequestBatch requests)
Constructor that allows specification of an HTTP connection to use for executing the requests. |
|
RequestAsyncTask(Request... requests)
Constructor. |
|
RequestAsyncTask(RequestBatch requests)
Constructor. |
|
| Method Summary | |
|---|---|
protected List<Response> |
doInBackground(Void... params)
|
protected Exception |
getException()
|
protected RequestBatch |
getRequests()
|
protected void |
onPostExecute(List<Response> result)
|
protected void |
onPreExecute()
|
String |
toString()
|
| Methods inherited from class android.os.AsyncTask |
|---|
cancel, execute, execute, executeOnExecutor, get, get, getStatus, isCancelled, onCancelled, onCancelled, onProgressUpdate, publishProgress |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RequestAsyncTask(Request... requests)
requests - the requests to executepublic RequestAsyncTask(Collection<Request> requests)
requests - the requests to executepublic RequestAsyncTask(RequestBatch requests)
requests - the requests to execute
public RequestAsyncTask(HttpURLConnection connection,
Request... requests)
connection - the HTTP connection to use to execute the requestsrequests - the requests to execute
public RequestAsyncTask(HttpURLConnection connection,
Collection<Request> requests)
connection - the HTTP connection to use to execute the requestsrequests - the requests to execute
public RequestAsyncTask(HttpURLConnection connection,
RequestBatch requests)
connection - the HTTP connection to use to execute the requestsrequests - the requests to execute| Method Detail |
|---|
protected final Exception getException()
protected final RequestBatch getRequests()
public String toString()
toString in class Objectprotected void onPreExecute()
onPreExecute in class AsyncTask<Void,Void,List<Response>>protected void onPostExecute(List<Response> result)
onPostExecute in class AsyncTask<Void,Void,List<Response>>protected List<Response> doInBackground(Void... params)
doInBackground in class AsyncTask<Void,Void,List<Response>>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||